package com.paziy.jan.calc.literals;

public class UnknownLiteral extends Exception {

    private int startError = -1;
    private int endError = -1;

    public UnknownLiteral() {
        super();
    }

    public UnknownLiteral(String message) {
        super(message);
    }

    public UnknownLiteral(Throwable cause) {
        super(cause);
    }

    public UnknownLiteral(String message, Throwable cause) {
        super(message,cause);
    }

    public UnknownLiteral(String message, int startError, int endError) {
        this(message);
        this.startError = startError;
        this.endError = endError;
    }

    public UnknownLiteral(String message, Throwable cause, int startError, int endError) {
        this(message, cause);
        this.startError = startError;
        this.endError = endError;
    }

    public int getStartError() {
        return startError;
    }

    public int getEndError() {
        return endError;
    }
}
